package com.neuedu.utils;

import com.alibaba.druid.pool.DruidDataSource;

public class JDBCUtil {
    private  static DruidDataSource druidDataSource;

    static {
        druidDataSource = new DruidDataSource();
        druidDataSource.setDriverClassName("com.mysql.cj.jdbc.Driver");
        druidDataSource.setUrl("jdbc:mysql://127.0.0.1:3306/javaweb_ele");
        druidDataSource.setUsername("root");
        druidDataSource.setPassword("root");
    }

    public static DruidDataSource getDruidDataSource() {
        return druidDataSource;
    }
}
